package com.kky.pp.activity.settings

import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import com.kky.pp.R
import com.gyf.immersionbar.ImmersionBar
import com.kky.pp.App
import com.kky.pp.base.TitleMvpBaseActivity
import com.kky.pp.databinding.ActivitySettingBinding

class SettingActivity : TitleMvpBaseActivity<SettingContact.View, SettingPresenter,ActivitySettingBinding>(ActivitySettingBinding::inflate),
    SettingContact.View {

    override fun bindLayout(): Int {
       return R.layout.activity_setting
    }

    override fun isShowBack():Boolean{
        return true
    }

    override fun setTitle(): String {
        return App.app?.resources?.getString(R.string.settings).toString()
    }

    override fun setFullScreen(): Boolean {
        return true
    }


    override fun onResume() {
        super.onResume()
        ImmersionBar.with(this).statusBarDarkFont(false).init()
    }
    override val containerMyAccount: LinearLayout
        get() = viewBinding.linearSettingContainerMyAccount
    override val containerPrivacyPolicy: LinearLayout
        get() = viewBinding.linearSettingContainerPrivacyPolicy
    override val containerSecurity: LinearLayout
        get() = viewBinding.linearSettingContainerSecurity
    override val containerTerms: LinearLayout
        get() = viewBinding.linearSettingContainerTerms
    override val tvMiddleTitle: TextView?
        get() = viewBinding.viewTitle.tvMiddleTitle
    override val tvRightTitle: TextView?
        get() = viewBinding.viewTitle.tvRightTitle
    override val ivLeftImage: ImageView?
        get() = viewBinding.viewTitle.ivBackIcon
    override val viewStatusHeight: View?
        get() = viewBinding.viewTitle.viewStatusHeight
}